//
//  NSMutableAttributedString+FCReplaceString.h
//  辅城
//
//  Created by WJC on 2018/6/21.
//  Copyright © 2018年 吴 剑川. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSMutableAttributedString (FCReplaceString)

/**
 替换颜色

 @param str 替换颜色的字
 @param color 颜色
 */
-(NSMutableAttributedString*)replaceColorWithStr:(NSString*)str andColor:(UIColor*)color;
/**
 替换背景颜色

 @param str 替换颜色的字
 @param color 颜色
 */
-(NSMutableAttributedString*)replaceBackColorWithStr:(NSString*)str andColor:(UIColor*)color;
/**
 替换字体
 
 @param str 替换字体的字
 @param font 字体
 */
-(NSMutableAttributedString*)replaceFontWithStr:(NSString*)str andColor:(UIFont*)font;

- (NSMutableAttributedString*)setLinespaceWithHeight:(CGFloat)height;
-(NSMutableAttributedString *)addAttrWithImage:(UIImage*)image adnbounds:(CGRect)bounds;
@end
